package com.biz.primus.ms.member.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 会员积分规则
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "member_integral_rule")
@Data
@EqualsAndHashCode(callSuper = true)
public class MemberIntegralRule extends BaseEntityPKIncrement
{

    /**
     * 规则别名
     */
    @Column(name = "rule_name",nullable = false, unique = true, length = 32)
    private String ruleName;

    /**
     * 规则说明
     */
    @Column(name = "rule_desc", length = 200)
    private String ruleDesc;

    /**
     * 规则对应需要改变的integral
     */
    @Column
    private Integer integral;

    /**
     * 每日获取积分上限
     */
    @Column
    private Integer dailyUpperLimit;

}
